component accessors="true" extends="controllerbase" {
	property articlecomment;
	this.entityObj ="articlecomment";
	
	public void function list(rc){
		var moduleSqlWhere = "";
		//判断articlebaseid，如果键不存在或者为0时，则是在“投诉咨询”此独立栏目下列取内容，否则则是具体某篇信息内容的评论回复
		if(!structKeyExists(rc, "articlebaseid") || rc.articlebaseid == 0 )
		{
			moduleSqlWhere = moduleSqlWhere & " and articlebaseid is null " ;
		}else{
			moduleSqlWhere = moduleSqlWhere & " and articlebaseid = #rc.articlebaseid# " ;
		}
		
		//判断articlecommentid，如果键不存在或者为0时，则是顶级的信息评论，否则则是有上下层级关系的信息评论及回复内容
		if(!structKeyExists(rc, "articlecommentid") || rc.articlecommentid == 0 )
		{
			moduleSqlWhere = moduleSqlWhere & " and articlecommentid is null " ;
		}else{
			moduleSqlWhere = moduleSqlWhere & " and articlecommentid = #rc.articlecommentid# " ;
		}
		
		super.list(rc,moduleSqlWhere);
	}
}